﻿using System;
namespace Read.Models
{
    /// <summary>
    /// 通用接口数据返回类
    /// </summary>
	public class ResultData<T>
    {
        public ResultData()
        {
            this.Message = string.Empty;
            this.Code = 200;
            this.Result = true;
			this.Total = 1;
        }

        /// <summary>
        /// 返回信息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 状态码
        /// </summary>
        public int Code { get; set; }

        /// <summary>
        /// 返回数据
        /// </summary>
        public T Data { get; set; }

        /// <summary>
        /// 返回状态
        /// </summary>
        public bool Result { get; set; }

		/// <summary>
        /// 总记录
        /// </summary>
        public int Total { get; set; }
    }
}
